import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";
/*老师 列表*/
export const queryTeacherList = (params?) => {
  return http.request("get", baseUrlApi("teacher/customerList"), { params });
};
/*老师管理-添加*/
export const addTeacher = async (data?: object) => {
  return http.request("post", baseUrlApi("teacher/add"), { data });
};
/*老师管理- 编辑*/
export const editTeacher = async (data?: object) => {
  return http.request("post", baseUrlApi("teacher/edit"), { data });
};
/*门店列表*/
export const queryStoreList = (params?) => {
  return http.request("get", baseUrlApi("store/storeList"), { params });
};
/*用户列表*/
export const queryRoleList = (params?) => {
  return http.request("get", baseUrlApi("sysUser/sysUserList"), { params });
};
/*老师管理-删除*/
export const deleteTeacher = (params?) => {
  return http.request("get", baseUrlApi("teacher/delete"), { params });
};
/*老师详情*/
export const getTeacherDetail = (params?) => {
  return http.request("get", baseUrlApi("teacher/teacherDetail"), { params });
};
/*枚举*/
export const enums = (params?) => {
  return http.request("get", baseUrlApi("base/enums"), {
    params
  });
};
/*门店列表*/
export const getStoreList = (params?) => {
  return http.request("get", baseUrlApi("store/storeList"), { params });
};

/*技能列表*/
export const getSkillList = (params?) => {
  return http.request("get", baseUrlApi("skill/skillList"), { params });
};